package com.diy.sigmund.diycommon.designpatterns.template;

import com.diy.sigmund.diycommon.designpatterns.template.beverage.CoffeeWithHook;
import com.diy.sigmund.diycommon.designpatterns.template.beverage.Tea;

/**
 * @author ylm-sigmund
 * @since 2022/2/10 10:25
 */
public class CaffeineBeverageTest {

    public static void main(String[] args) {
        Tea tea = new Tea();
        tea.prepareRecipe();

        System.out.println("开始测试钩子函数");
        CoffeeWithHook coffeeWithHook = new CoffeeWithHook();
        coffeeWithHook.prepareRecipe();
    }

}
